package business;

import java.util.List;
import dao.IMovieDAO;
import dao.JDBCMovieDAO;
import domain.Movie;

public class BusinessMovie {

	public static List<Movie> getAllMovies() {
		IMovieDAO MovieDAO = new JDBCMovieDAO();
		return MovieDAO.getAllMovies();
	}

	public static List<Movie> getAllMoviesStartingWithLetter(char letter) {
		IMovieDAO MovieDAO = new JDBCMovieDAO();
		return MovieDAO.getAllMoviesStartingWithLetter(letter);
	}

	public static List<Movie> getAllMoviesByGenre(String genre) {
		IMovieDAO MovieDAO = new JDBCMovieDAO();
		return MovieDAO.getAllMoviesByGenre(genre);
	}
	public static Movie getMoviesByIdVideo(Integer id) {
		IMovieDAO MovieDAO = new JDBCMovieDAO();
		return MovieDAO.getMoviesByIdVideo(id);
	}

	public static List<Movie> getAllMoviesByTitleYearGenre(String title,
			Integer year, String genre) {
		IMovieDAO MovieDAO = new JDBCMovieDAO();
		return MovieDAO.getAllMoviesByTitleYearGenre(title,year,genre);
	}

	public static List<Movie> getAllMoviesByTitleYear(String title, Integer year) {
		IMovieDAO MovieDAO = new JDBCMovieDAO();
		return MovieDAO.getAllMoviesByTitleYear(title,year);
	}

	public static List<Movie> getAllMoviesByTitleGenre(String title,
			String genre) {
		IMovieDAO MovieDAO = new JDBCMovieDAO();
		return MovieDAO.getAllMoviesByTitleGenre(title,genre);
	}

	public static List<Movie> getAllMoviesByTitle(String title) {
		IMovieDAO MovieDAO = new JDBCMovieDAO();
		return MovieDAO.getAllMoviesByTitle(title);
	}

	public static List<Movie> getAllMoviesByYearGenre(Integer year, String genre) {
		IMovieDAO MovieDAO = new JDBCMovieDAO();
		return MovieDAO.getAllMoviesByYearGenre(year,genre);
	}

	public static List<Movie> getAllMoviesByYear(Integer year) {
		IMovieDAO MovieDAO = new JDBCMovieDAO();
		return MovieDAO.getAllMoviesByYear(year);
	}
}